package com.delivery.service;

import com.delivery.dto.ShoppingCartAddDTO;
import com.delivery.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param dto
     */
    void addCart(ShoppingCartAddDTO dto);

    List<ShoppingCart> viewCart();

    /**
     * 删除购物车
     * @param dto
     */
    void deleteCart(ShoppingCartAddDTO dto);

    /**
     * 清空购物车
     */
    void cleanCart();
}
